﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Customer.Master" AutoEventWireup="true"
    CodeBehind="CustomerChangePassword.aspx.cs" Inherits="EHTSaleManager.UICustomer.CustomerChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        <asp:Label ID="lbChangePassword" runat="server" Text="Change password"></asp:Label>
    </h1>
    <div class="accountInfo">
        <table cellspacing="0" cellpadding="0" class="data-table">
            <tr>
                <td colspan="2">
                    <span class="failureNotification">
                        <asp:Literal ID="ltrMessage" runat="server"></asp:Literal>
                    </span>
                    <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
                        ValidationGroup="RegisterUserValidationGroup" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbCurrentPassword" runat="server" Text="Current Password:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtCurrentPassword" runat="server" CssClass="textEntry" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rCurrentPassword" runat="server" ControlToValidate="txtCurrentPassword"
                        CssClass="failureNotification" ErrorMessage="Current password is required." ToolTip="Current password is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbNewPassword" runat="server" Text="New Password:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtNewPassword" runat="server" CssClass="textEntry" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rNewPassword" runat="server" ControlToValidate="txtNewPassword"
                        CssClass="failureNotification" ErrorMessage="New password is required." ToolTip="New password is required."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbNewPasswordComfirm" runat="server" Text="New Password comfirm:"></asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtNewPasswordComfirm" runat="server" CssClass="textEntry" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rNewPasswordComfirm" runat="server" ControlToValidate="txtNewPasswordComfirm"
                        CssClass="failureNotification" ErrorMessage="New password comfirm is required."
                        ToolTip="New password comfirm is required." ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    <asp:CompareValidator CssClass="failureNotification" ID="cNewPasswordComfirm" ControlToValidate="txtNewPasswordComfirm"
                        ControlToCompare="txtNewPassword" runat="server" ErrorMessage="Comfirm Password is same password."
                        ToolTip="Comfirm Password is same password." ValidationGroup="RegisterUserValidationGroup">*</asp:CompareValidator>
                </th>
            </tr>
            <tr>
                <td>
                </td>
                <th>
                    <asp:Button ID="btnChangePassword" runat="server" Text="Change password" ValidationGroup="RegisterUserValidationGroup"
                        OnClick="btnChangePassword_Click" />
                </th>
            </tr>
        </table>
    </div>
</asp:Content>
